statsForPlayerId

  • function
 

Gets a list of stats for a player

viewmodel.statsForPlayerId(id)

Gets a list of stats for a player

Parameters

  1. id {String | can.compute<String>}

    The id of the player.

Returns

{can.List}

The list of stats for the player.

Use in a template like:

{{#eachOf statsForPlayerId(id)}}
{{type}}
{{/each}}